//
//  LectureViewCell.m
//  meiyaya
//
//  Created by 张领瑞 on 2017/9/12.
//  Copyright © 2017年 ShiFeiEr. All rights reserved.
//

#import "LectureViewCell.h"

@implementation LectureViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)focusAction:(UIButton*)sender {
    if (self.delegate &&[self.delegate respondsToSelector:@selector(lectureFocusDidSelected:)]) {
        [self.delegate lectureFocusDidSelected:sender];
    }
}
- (void)configureViewWithCustomObj:(id)obj{
    if (!obj) return;
    LectureModel *model = (LectureModel *)obj;
    [self.lecture_icon setImageWithURL:[NSURL URLWithString:model.lecture_icon] placeholderImage:PLACEHOLDERIMAGE];
    self.lecture_name.text = model.lecture_name;
    self.lecture_fansNum.text = [NSString stringWithFormat:@"粉丝：%@",model.lecture_fansNum];
   
}



@end
